#ifndef FONT_H
#define FONT_H

#include "Advanced2D.h"

#pragma once

namespace Advanced2D {

    class Font : public Sprite {
    private:
        int widths[256];

    public:
        Font();
        virtual ~Font(void) { }

        void Print(int x, int y, std::string text, int color = 0xFFFFFFFF );

        int getCharWidth() { return this->width; }
        int getCharHeight() { return this->height; }
        void setCharWidth(int width) { this->width = width;    }
        void setCharSize(int width, int height) {
            setCharWidth( width );
            this->height = height;
        }

        bool loadWidthData(std::string filename);

    };

};

#endif // FONT_H
